// 购物车
import http from '../utils/http.js';

/**
 * 购物车添加商品
*/
export const AddCar = (data)=>{
    return http.post('/auth/car/add',data)
}

/**
 * 购物车修改
*/
export const UpdataCar = (data)=>{
    return http.put('/auth/car/update',data)
}

/**
 * 购物车删除
*/
export const CarList = (carId)=>{
    return http.get(`/auth/car/delete/${carId}`)
}

/**
 * 获取购物车列表
*/
export const GetCarList = ()=>{
    return http.get('/auth/car/list')
}

/**
 * 购物车批量修改
*/
export const UpdataCarList = (data)=>{
    return http.put('/auth/car/batch/update',data)
}

/**
 * 购物车批量删除
*/
export const CarListDel = (data)=>{
    return http.delete('/auth/car/delete',data)
}